package com.lv.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lv.common.dto.MenuList;
import com.lv.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 凉薄
 * @since 2022-01-06
 */
public interface RoleService extends IService<Role> {
    IPage<Role> getAllRole(Integer current,Integer pageSize,String roleName);
    List<Long> getRoleInfo(Long id);
    @Transactional
    void upRoleInfo(Long id,Long[]menuIds);
    @Transactional
    void deleteRole(Long id);
}
